import { request } from '@/api/_service'

// 查询pmsCategory列表
export function LIST (data) {
  return request({
    url: '/category_list',
    method: 'get',
    params: data
  })
}

// 分页查询pmsCategory列表
export function PAGE (data) {
  return request({
    url: '/pmsCategory/page',
    method: 'get',
    params: data
  })
}

// 查询pmsCategory
export function GET (data) {
  return request({
    url: '/pmsCategory/' + data,
    method: 'get'
  })
}

// 新增pmsCategory
export function ADD (data) {
  return request({
    url: '/add_category',
    method: 'post',
    data: data
  })
}

// 修改pmsCategory
export function UPDATE (data) {
  return request({
    url: '/upd_category',
    method: 'post',
    data: data
  })
}

// 删除pmsCategory
export function DELETE (data) {
  return request({
    url: '/del_category',
    method: 'post',
    data: data
  })
}

export default {
  LIST,
  PAGE,
  GET,
  ADD,
  UPDATE,
  DELETE
}
